package com.KKd.mapper;

import com.KKd.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    //添加评论
    int addComment(Comment comm);
    //根据id删除评论
    int deleteCommentById(@Param("commId")int commId);
    //点赞
    int addCommThumbNum(@Param("commId")int commId);
    //取消点赞
    int decCommThumbNum(@Param("commId")int commId);
    //评论置顶
    int setCommentFirstById(@Param("commId")int commId);
    //返回评论
    List<Comment> queryComments(@Param("blogId")int blogId);
}
